/**
 * @description 接口服务
 * @author wangxin
 * @date 2020-6-1
 * @version 1.0
 */

/* eslint no-trailing-spaces:0 */
/* eslint no-unused-vars:0 */
import { Requester } from "_/support";

const { GET, POST } = Requester({
  baseURL: 'http://127.0.0.1:3000/',
  timeout: 0
});

export default {
  readdir(state, params) {
    return GET('/file/readdir', params)
  },
  userhome(state) {
    return POST('/file/userhome')
  },
  readfile(state, params) {
    return GET('/file/readfile', params)
  },
  writefile(state, params) {
    return GET('/file/writefile', params)
  }
}
